package com.zy.bean4.dao;

import org.springframework.stereotype.Repository;

@Repository   //Dao层的注解是@Repository
public class ProductDaoMysqlDao implements ProductDao {
    //不去联接数据库，只做模拟
    @Override
    public void add(String pname, double price) {
        System.out.println("mysql 增加"+pname+","+price);
    }

    @Override
    public void update(String pname, double price) {
        System.out.println("mysql 修改"+pname+","+price);
    }

    @Override
    public double findPrice(String pname) {
        System.out.println("mysql 查询"+pname);
        return 5.0;
    }
}
